home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.cs.arizona.edu
/
ftp.cs.arizona.edu.tar
/
ftp.cs.arizona.edu
/
icon
/
newsgrp
/
group99a.txt
/
000204_icon-group-sender _Fri Oct 1 13:48:03 1999.msg
< prev
next >
Wrap
Internet Message Format
|
2000-09-20
|
4KB
Return-Path: <icon-group-sender>
Received: (from root@localhost)
by baskerville.CS.Arizona.EDU (8.9.1a/8.9.1) id NAA06491
for icon-group-addresses; Fri, 1 Oct 1999 13:47:54 -0700 (MST)
Message-Id: <199910012047.NAA06491@baskerville.CS.Arizona.EDU>
Date: Fri, 01 Oct 1999 12:34:37 -0700
From: Steve Wampler <swampler@noao.edu>
X-Accept-Language: en
To: icon-group <icon-group@optima.CS.Arizona.EDU>
Subject: An a2ps style sheet for Icon
Errors-To: icon-group-errors@optima.CS.Arizona.EDU
Status: RO
This is a multi-part message in MIME format.
--------------351713C02FB9FE89DD635AF3
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
If anyone's interested, here's the first cut at a style-sheet
for printing Icon files using the a2ps utility. I'm hoping
that someone will take this and improve upon it (the handling
of operators could be a lot better). If you do improve it,
please send me the improved version (and "Thanks"!).
--
Steve Wampler- SOLIS Project, National Solar Observatory
swampler@noao.edu
--------------351713C02FB9FE89DD635AF3
Content-Type: text/plain; charset=us-ascii;
name="icon.ssh"
Content-Disposition: inline;
filename="icon.ssh"
Content-Transfer-Encoding: 7bit
# Style sheet for Icon
#
#
# This file is part of a2ps.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2, or (at your option)
# any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; see the file COPYING. If not, write to
# the Free Software Foundation, 59 Temple Place - Suite 330,
# Boston, MA 02111-1307, USA.
#
## 1.0 Steve Wampler
style Icon is
version is 1.0
requires a2ps version 4.10
written by "Steve Wampler <sbw@tapestry.tucson.az.us>"
first alphabet is
"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz_#$&"
second alphabet is
"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz._"
case sensitive
keywords in Keyword are
"\&allocated", "\&ascii", "\&clock", "\&collections", "\&cset",
"\¤t", "\&date", "\&dateline", "\&digits", "\&dump", "\&e",
"\&error", "\&errornumber", "\&errortext", "\&errorvalue",
"\&errout", "\&fail", "\&features", "\&file", "\&host", "\&input",
"\&lcase", "\&letters", "\&level", "\&line", "\&main", "\&null",
"\&outpout", "\&phi", "\&pi", "\&pos", "\&progname", "\&random",
"\®ions", "\&source", "\&storage", "\&subject", "\&time",
"\&trace", "\&ucase", "\&version"
end keywords
keywords in Keyword_strong are
"break", "by", "case", "create", "default", "do", "else", "end",
"every", "fail", "global", "if", "initial", "invocable", "link",
"local", "next", "not", "of", "procedure", "record", "repeat",
"return", "static", "suspend", "then", "to", "until", "while"
end keywords
optional operators are
# This needs more work!
<- \leftarrow,
~= \neq,
=== \equiv,
<<<=,
>>>=,
<<=,
>>=,
<= \leq,
>= \geq,
~ \not
end operators
sequences are
# Comments (could make this "Comment_strong" to stand out more...)
"#" Comment,
# Strings
C-string,
# Csets
"'" Plain String "'" Plain
exceptions are
"\\'", "\\\\"
end exceptions,
# Special case procedure declarations so names stand out
"procedure " Keyword_strong Label_strong /[ \t]*(/ Plain
end sequences
end style
--------------351713C02FB9FE89DD635AF3--